using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class start : MonoBehaviour
{
    public void PlayGame()
    {
        SceneManager.LoadScene("Level1");
    }

     public void Quit()
    {
        Application.Quit();
    }

    public void Return()
    {
        SceneManager.LoadScene("SelectLevel");
    }

    public void OpenGameSetting()
    {
        Time.timeScale = 0;
        GameObject getSettingUI = GameObject.FindGameObjectWithTag("getSettingUI").transform.gameObject;
        getSettingUI.transform.GetChild(0).gameObject.SetActive(true);
    }
    public void CloseGameSettingUI()
    {

        Time.timeScale = 1;
        GameObject getSettingUI = GameObject.FindGameObjectWithTag("getSettingUI").transform.gameObject;
        getSettingUI.transform.GetChild(0).gameObject.SetActive(false);

    }

}
